package com.framwork.base;

import io.reactivex.functions.Consumer;

/**
 * Created by ycDeng on 2020/5/12.
 * RxBus Presenter
 */
public interface IRxBusPresenter extends IBasePresenter {

    /**
     * 注册
     * @param eventType
     * @param <T>
     */
    <T> void registerRxBus(Class<T> eventType, Consumer<T> action);

    /**
     * 注销
     */
    void unregisterRxBus();
}
